package com.yz.newspaper.controller;


import com.yz.newspaper.pojo.result.Result;
import com.yz.newspaper.pojo.unitPo.PageBean;
import com.yz.newspaper.service.IEndUserScoreService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * 用户每月最终分数
 *
 * @author author
 * @since 2024-05-04
 */
@RestController
@RequestMapping("/end-user-score")
public class EndUserScoreController {
    @Autowired
    private IEndUserScoreService endUserScoreService;

    @GetMapping("/list")
    @ApiOperation("用户每月最终分数")
    public Result getList(String username, Integer year, Integer month, Integer pageNum, Integer pageSize) {
        PageBean pageBean = endUserScoreService.getList(username, year, month, pageNum, pageSize);
        return Result.success(pageBean);
    }
}
